package kgc.NewsService;

import kgc.pojo.News_Category;
import kgc.pojo.News_Comment;
import kgc.pojo.News_Detail;
import kgc.pojo.News_User;

import java.util.List;

/**
 * @author DXH
 * @version 1.0.0
 * @ClassName NewsService
 * @Description TODO
 * @createTime 2022年04月05日 12:35:59
 */
public interface NewsService {
    public List<News_Category> ServiceSelectCategoryAll();
    public List<News_Comment> ServiceSelectCommentAll();
    public List<News_Detail> ServiceSelectDetailAll();
    public List<News_User> ServiceSelectUserAll();

    public int ServiceDeleteById(int id, int num);
    public int ServiceUpdateById(int id, int num);
    public List<Object> ServiceSelectById(int id, int num);
    public int ServiceUpdateCategory(News_Category category);
    public int ServiceUpdateUser(News_User user);
    public int ServiceInsertCategory(News_Category category);
    public int ServiceInsertUser(News_User user);
}
